package com.wayhome.springfarmework.beans.factory.config;

import com.wayhome.springfarmework.beans.BeansException;

public interface BeanPostProcessor {

    /**
     * 对象执行初始化方法之前调用此方法
     *
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException;

    /**
     * 对象初始化完成后调用此方法
     *
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException;
}
